package com.bci.pwtz.mysql.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Dyzsblq;

public interface DyzsblqMapper {
    int deleteByPrimaryKey(String deviceid);

    int insert(Dyzsblq record);

    int insertSelective(Dyzsblq record);

    Dyzsblq selectByPrimaryKey(String deviceid);

    int updateByPrimaryKeySelective(Dyzsblq record);

    int updateByPrimaryKey(Dyzsblq record);
    
    List<Dyzsblq> selectDeviceList(@Param("name")String name,@Param("portalType")int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("towerCode")String towerCode,@Param("companyids")String[] companyids,@Param("companyid")Long companyId,@Param("beginTime")String beginTime,@Param("endTime")String endTime,@Param("beginIndex")int beginIndex,@Param("pageSize")int pageSize);
    
    int selectDeviceCount(@Param("name")String name,@Param("portalType")int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("towerCode")String towerCode,@Param("companyids")String[] companyids,@Param("companyid")Long companyId,@Param("beginTime")String beginTime,@Param("endTime")String endTime);
    
    int deleteById(@Param("deviceid")String deviceid,@Param("lastmodifiedtime")Date time);
    
    List<Dyzsblq> selectByDytg(@Param("towerCode") String towerCode,@Param("deviceName") String deviceName,@Param("companyId") Long companyId,@Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize);
    
    int selectDeviceCountByDytg(@Param("towerCode") String towerCode,@Param("deviceName") String deviceName,@Param("companyId") Long companyId);
}